package com.onesports.intelligent.k12.polarlight.domain.dto.operation;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.onesports.framework.kit.common.valid.NotEmpty;
import com.onesports.intelligent.k12.polarlight.domain.dto.common.BasePageDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 *
 *
 * @author chenrl
 * @since 1.0.0 2022-07-08
 */
@Data
@ApiModel(value = "运营端-课程订单")
public class PageOrderDTO extends BasePageDTO {

    @ApiModelProperty(value = "运营团队id")
    @NotEmpty(message = "运营团队编号不可为空")
    private String organizationId;

    @ApiModelProperty(value = "校区id")
    @NotEmpty(message = "运营校区编号不可为空")
    private String campusId;

    @ApiModelProperty(value = "订单id")
    private String orderNo;

    @ApiModelProperty(value = "商品名称")
    private String productName;

    @ApiModelProperty(value = "课程名称")
    private String courseName;

    @ApiModelProperty(value = "订单状态")
    private String orderStatus;

    @ApiModelProperty(value = "会员名称")
    private String name;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "学员名称")
    private String studentName;

    @ApiModelProperty(value = "订单时间-开始")
    private String orderTimeStart;

    @ApiModelProperty(value = "订单时间-结束")
    private String orderTimeEnd;

    @ApiModelProperty(value = "省")
    private String areaByProvince;

    @ApiModelProperty(value = "市")
    private String areaByCity;

    @ApiModelProperty(value = "区")
    private String area;

    @ApiModelProperty(value = "支付时间-开始")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date payTimeStart;

    @ApiModelProperty(value = "支付时间-结束")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date payTimeEnd;

}
